#include <stdio.h>

#define XSIZE 5
#define YSIZE 2

int main()
{
    char x[XSIZE+1]= "hello";
    char y[YSIZE+1] = "ho";
    int j = 0;
    for (int i = 0; i < YSIZE; i++) {
        if (j == XSIZE) { 
            printf("fail1 !\n");
            return 1;
        }
        for (; j < XSIZE; j++) {
            if (x[j] == y[i] && i != YSIZE - 1) 
                break;
            if (x[j] == y[i] && i == YSIZE - 1) {
                printf("success !\n");
                return 0;
            }
        }
    }
    printf("fail2 \n");
    return 1;
}